package com.xja.seckill.order;

import com.netflix.hystrix.Hystrix;
import com.xja.seckill.order.commons.JsonBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "ORDER",fallback = Hystrix.class)
public interface OrderClientApi {

    @RequestMapping("/order/payOrder")
    JsonBean payOrder(@RequestParam("code") String code);

}
